<pld-page-header>
  <ng-template #titleArea>全局设置</ng-template>
</pld-page-header>

<nz-spin [nzSpinning]="loading">
  <nz-card class="m-sm width-xxl">
    <form nz-form [formGroup]="form">
      <nz-form-item>
        <nz-form-label [nzRequired]="true" [nzSpan]="6" nzFor="title">系统名称</nz-form-label>
        <nz-form-control [nzSpan]="18">
          <input nz-input [formControlName]="'title'" placeholder="请填写"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label [nzRequired]="true" [nzSpan]="6" nzFor="logoUrl">系统Logo</nz-form-label>
        <nz-form-control [nzSpan]="18">
          <input nz-input [formControlName]="'logoUrl'" placeholder="请填写"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label [nzRequired]="true" [nzSpan]="6" nzFor="imgHost">系统图片Host</nz-form-label>
        <nz-form-control [nzSpan]="18">
          <input nz-input [formControlName]="'imgHost'" placeholder="请填写"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label [nzRequired]="true" [nzSpan]="6" nzFor="systemHost">系统Host</nz-form-label>
        <nz-form-control [nzSpan]="18">
          <input nz-input [formControlName]="'systemHost'" placeholder="请填写"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label [nzRequired]="true" [nzSpan]="6" nzFor="telephone">联系电话</nz-form-label>
        <nz-form-control [nzSpan]="18">
          <input nz-input [formControlName]="'telephone'" placeholder="请填写"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item class="mb-none">
        <nz-form-control [nzSpan]="18" [nzOffset]="6">
          <button nz-button nzType="primary" (click)="saveCfg()">保存</button>
        </nz-form-control>
      </nz-form-item>
    </form>
  </nz-card>
</nz-spin>
